package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-设备台账(OperationDevice)表实体类
 *
 * @author yxy
 * @since 2024-10-25 09:17:53
 */
@Data
@ApiModel("运维-设备台账")
@TableName(value = "tb_operation_device")
public class OperationDevice extends Model<OperationDevice> implements Serializable {
    private static final long serialVersionUID = -19709039041889196L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("设备id")
    private Long deviceId;

    @ApiModelProperty("项目id")
    private Long itemId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("安装地点")
    private String installationSite;

    @ApiModelProperty("负责人")
    private String principal;

    @ApiModelProperty("负责人电话")
    private String principalPhone;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;
}
